<script type="text/javascript" src="manage/registry/listRegistry.js" charset="utf-8"></script>

<style>
	#pnlRegistry{
		float:left; 
		width:240px;
	}
	
	#filter_registryTree{
		width: 230px;
	}
	
	#registryTree{
		width:100%;
		height:398px;
		margin-top: 11px;
	}
	
	#pnlRegistryDetail{
		margin-left:265px;
	}
	
	#pnlRegistryDetailIn{
		margin-top:10px
	}
	
	#registryForm .ccay-form-custom{
		clear: none;
	}
	
	#registryForm input[type='text'],#registryForm textarea{
		width:70%
	}
	
	
</style>

 <div id='pnlRegistry'>
	<ul id="registryTree"  class="ztree"  ></ul>
 </div>
<div id="pnlRegistryDetail">
	<div class="ccay-toolbar">
		<span id="add" onclick="Ccay.registry.ListRegistry.resetDom()" class="init ccay-button"><a class="ccay-icon add"></a><label class="i18n" i18nkey="ccay.common.button.dataItemAdd"></label></span>				    				  
		<span id="delete" onclick="Ccay.registry.ListRegistry.del()" class="init ccay-button" style="display: none;"><a class="ccay-icon del"></a><label class="i18n" i18nkey="删除数据项"></label></span>				    				  
		<span id="reset" onclick="Ccay.registry.ListRegistry.del()" class="init ccay-button" style="display: none;"><a class="ccay-icon reset"></a><label class="i18n" i18nkey="值为默认值"></label></span>				    				  
		<span id="savespan" onclick="Ccay.registry.ListRegistry.save()" class="init ccay-button" ccaypermission="Service$Registry$create|Service$Registry$update">
			<a class="ccay-icon save"></a><label class="i18n" i18nkey="ccay.common.button.save"></label>
		</span>

		<div class="init init ccay-menubutton" ccaypermission="Service$Registry$import|Service$Registry$export">
			<div class="ccay-menubutton-body">
				<a class="ccay-icon excel"></a>
				<span class="i18n" i18nKey="ccay.common.button.importExport"></span>
			</div>
			<a class="ccay-menubutton-btn" href="javascript:void 0"></a>
			<div class="ccay-menubutton-selector ccay-popup">
				<ul>
					<li onclick="Ccay.registry.ListRegistry.registryMapImport()"
						class="init ccay-menubutton-item"
						ccaypermission="Service$Registry$import"><a
						class="ccay-icon import"></a><span class="i18n"
						i18nkey="ccay.common.button.import"></span></li>
					<li
						onclick="Ccay.registry.ListRegistry.registryMapImportWithoutUpdate()"
						class="init ccay-menubutton-item"
						ccaypermission="Service$Registry$import"><a
						class="ccay-icon import"></a><span class="i18n"
						i18nkey="ccay.common.button.importWithoutUpdate"></span></li>
					<li onclick="Ccay.registry.ListRegistry.exportRegistry()"
						class="init ccay-menubutton-item"
						ccaypermission="Service$Registry$export"><a
						class="ccay-icon export"></a><span class="i18n"
						i18nkey="ccay.common.label.excelExport"></span></li>
					<li onclick="location.href='servlet/download?dlType=ExcelTemplate&excelType=ccay.registry'"
						class="init ccay-menubutton-item"
						ccaypermission="Service$Registry$import"><a
						class="ccay-icon download"></a><span class="i18n"
						i18nkey="ccay.common.label.importTemplate"></span></li>
				</ul>
			</div>
		</div>
		<!-- 模板下载 -->
		<a href="servlet/download?dlType=ExcelTemplate&excelType=ccay.registry" i18nKey="" class="init i18n" ccayPermission="Service$Registry$import"></a>
	</div>
	<div id="pnlRegistryDetailIn">
		<h4><span class="i18n" i18nKey="ccay.registry.label.nodeDetail"></span></h4>
		<form id="registryForm" class="init ccay-form">
			<div class="ccay-form-body ccay-form-custom">		
	             <div name="hiddenRegistryDiv">
	                   <input type="hidden" name="propertyId" id="propertyId"/>
	             </div>
				<ul>
				<li class="ccay-form-row">
				  <samp class="init i18n require" i18nKey="ccay.registry.label.name"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" name="name" id="name" class="required specialch2"  maxlength="64" style="width:70%" />
				  </span>
				</li> 
				<li class="ccay-form-row">
				  <samp class="i18n require" i18nKey="当前值" ></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text"  id="value"  name="value" class="required" maxlength="4000" style="width:70%" />
				   </span>
				</li>
				<li class="ccay-form-row" id="valueFromSourceCodeLi" style="display: none;">
				  <samp class="i18n" i18nKey="默认值"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" id="valueFromSourceCode" name="valueFromSourceCode"  disabled="disabled" style="width:70%" />
				   </span>
				</li>
				<li class="ccay-form-row" id="valueFromExtInfoLi" style="display: none;">
				  <samp class="i18n" i18nKey="扩展定义值"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" id="valueFromExtInfo" name="valueFromExtInfo"  disabled="disabled"  style="width:70%" />
				   </span>
				</li>
				<li class="ccay-form-row">
				  <samp class="i18n" i18nKey="ccay.common.label.description"></samp>
				  <span class='ccay-form-input'>
				 	  <textarea id="desc"  name="desc" maxlength="4000" style="height:154px"></textarea>
				   </span>
				</li>
				<!--  									
				<li class="ccay-form-row">
				  <samp class="i18n" i18nKey="ccay.security.label.displayName"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" id="displayName" name="displayName" maxlength="4000" style="width:70%" />
				  </span>
				</li>
				<li class="ccay-form-row">
				  <samp class="i18n" i18nKey="ccay.security.label.dictionaryParentId"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" id="parentName" name="parentName" readOnly="true"  style="width:70%"/>
				 	  <input type="button" id="selectParent" value="..." onclick="Ccay.registry.ListRegistry.selectParent()" class="init" ccayPermission="Service$Registry$create|Service$Registry$update"/> 
				 	  <input type="hidden" id=parentId name="parentId" />
				  </span>
				</li>
				<li class="ccay-form-row">
				  <samp class="i18n" i18nKey="ccay.security.label.dictionaryIndex"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text" id="listIndex" name="listIndex" value="0"  class="digits" max="9999999"  min="0"  style="width:70%" />							  
				   </span>
				</li>
				<li class="ccay-form-row">
				  <samp class="i18n" i18nKey="ccay.security.label.dictionaryParentPath"></samp>
				  <span class='ccay-form-input'>
				 	  <input type="text"  id="parentPath"  name="parentPath" readOnly="true" style="width:70%" maxlength="400"/>
				   </span>
				</li>
				-->			
			</ul>
			</div>			
		</form>
	</div>
 </div>